package com.test.alibrary;

import android.content.Intent;

import com.google.auto.service.AutoService;
import com.test.aninterface.ApplicationUtils;
import com.test.aninterface.startIntent;

@AutoService(startIntent.class)
public class goAImp implements startIntent {
    @Override
    public void go(String name) {
        if (name.equals("a")) {
            Intent in = new Intent(ApplicationUtils.getInstance().getContext(), AMainActivity.class);
            in.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            ApplicationUtils.getInstance().getContext().
                    startActivity(in);
        }
    }

}
